﻿using ChurchDiary.DAL.Contract;
using ChurchDiary.DAL.Methods;
using ChurchDiary.TableEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ChurchDiary.BLL
{
    public class BLL_Administration
    {
        #region Pages
        public List<EntityPage> GetPages(int PageNo, string SearchKey, string Sort, string SortMode, int PerPage)
        {
            IAdministration Administration = new DAL_Administration();
            return Administration.GetPages(PageNo, SearchKey, Sort, SortMode, PerPage);
        }
        public List<EntityPage> GetPages()
        {
            IAdministration Administration = new DAL_Administration();
            return Administration.GetPages();
        }
        public string InsertUpdateNewPages(EntityPage Pages)
        {
            IAdministration Administration = new DAL_Administration();
            return Administration.InsertUpdateNewPages(Pages);
        }
        public EntityPage GetPage(int PageId)
        {
            IAdministration Administration = new DAL_Administration();
            return Administration.GetPage(PageId);
        }
        public EntityPage GetPage(string ControllerName,string ActionName)
        {
            IAdministration Administration = new DAL_Administration();
            return Administration.GetPage(ControllerName, ActionName);
        }
        public string UpdatePage(EntityPage Page)
        {
            IAdministration Administration = new DAL_Administration();
            return Administration.UpdatePage(Page);
        }
        #endregion
        #region PageSection Pk
        public string InsertPageSectionPk(EntityPageSectionPk PageSection)
        {
            IAdministration Administration = new DAL_Administration();
            return Administration.InsertPageSectionPk(PageSection);
        }
        public string UpdatePageSectionPk(EntityPageSectionPk PageSection)
        {
            IAdministration Administration = new DAL_Administration();
            return Administration.UpdatePageSectionPk(PageSection);
        }
        public string DeletePageSectionPk(Guid PageSectionId)
        {
            IAdministration Administration = new DAL_Administration();
            return Administration.DeletePageSectionPk(PageSectionId);
        }
        public List<EntityPageSectionPk> GetPageSectionPk(int PageNo, string SearchKey, string Sort, string SortMode, int PerPage)
        {
            IAdministration Administration = new DAL_Administration();
            return Administration.GetPageSectionPk(PageNo, SearchKey, Sort, SortMode, PerPage);
        }
        public List<EntityPageSectionPk> GetPageSectionPk()
        {
            IAdministration Administration = new DAL_Administration();
            return Administration.GetPageSectionPk();
        }
        public EntityPageSectionPk GetPageSectionPk(Guid PageSectionId)
        {
            IAdministration Administration = new DAL_Administration();
            return Administration.GetPageSectionPk(PageSectionId);
        }
        #endregion
        #region PageSection
        public string InsertPageSection(EntityPageSection PageSection)
        {
            IAdministration Administration = new DAL_Administration();
            return Administration.InsertPageSection(PageSection);
        }
        public string UpdatePageSection(EntityPageSection PageSection)
        {
            IAdministration Administration = new DAL_Administration();
            return Administration.UpdatePageSection(PageSection);
        }
        public string DeletePageSection(Guid PageSectionId)
        {
            IAdministration Administration = new DAL_Administration();
            return Administration.DeletePageSection(PageSectionId);
        }
        public List<EntityPageSection> GetPageSection(int PageNo, string SearchKey, string Sort, string SortMode, int PerPage,Guid GetPageSection)
        {
            IAdministration Administration = new DAL_Administration();
            return Administration.GetPageSection(PageNo, SearchKey, Sort, SortMode, PerPage, GetPageSection);
        }
        public EntityPageSection GetPageSection(Guid PageSectionId)
        {
            IAdministration Administration = new DAL_Administration();
            return Administration.GetPageSection(PageSectionId);
        }
        #endregion
        #region PageSection Assignment
        public string InsertPageSectionAssignment(EntityPageSectionAssignment PageSectionAssignment)
        {
            IAdministration Administration = new DAL_Administration();
            return Administration.InsertPageSectionAssignment(PageSectionAssignment);
        }
        public string UpdatePageSectionAssignment(EntityPageSectionAssignment PageSectionAssignment)
        {
            IAdministration Administration = new DAL_Administration();
            return Administration.UpdatePageSectionAssignment(PageSectionAssignment);
        }
        public string DeletePageSectionAssignment(Guid PageSectionAssignmentId)
        {
            IAdministration Administration = new DAL_Administration();
            return Administration.DeletePageSectionAssignment(PageSectionAssignmentId);
        }
        public EntityPageSectionAssignment GetPageSectionAssignment(Guid EntityPageSectionAssignmentId)
        {
            IAdministration Administration = new DAL_Administration();
            return Administration.GetPageSectionAssignment(EntityPageSectionAssignmentId);
        }
        public List<EntityPageSectionAssignment> GetPageSectionAssignment(int PageNo, string SearchKey, string Sort, string SortMode, int PerPage)
        {
            IAdministration Administration = new DAL_Administration();
            return Administration.GetPageSectionAssignment(PageNo, SearchKey, Sort, SortMode, PerPage);
        }
        #endregion
    }
}
